import React from 'react'
import format from 'lib/util/format'
var cols = [{
  title:'名称',
  key:'name',
  render:function(fmtVal,rowData){
    return (
      <a className="link-in-list" data-tip={fmtVal} data-place="top" href={
        '#/errorgrouptrace/'+rowData.statusCode+'/'+rowData.domainId+'/'+rowData.urlId
      }>{fmtVal}</a>
    )
  }
},{
  title:'状态码',
  containerStyle:{
    minWidth:'45px'
  },
  key:'statusCode',
  sortable:true
},{
  title:'首次发生时间',
  containerStyle:{
    minWidth:'100px',
    wordBreak:'break-word'
  },
  key:'firstTime',
  formatter:format.stampToTime,
  sortable:true
},{
  title:'最后发生时间',
  containerStyle:{
    minWidth:'100px',
    wordBreak:'break-word'
  },
  key:'lastTime',
  formatter:format.stampToTime,
  sortable:true
},{
  title:'版本号',
  containerStyle:{
    minWidth:'45px'
  },
  key:'appVersion',
  sortable:true
},{
  title:'采集次数',
  containerStyle:{
    minWidth:'56px'
  },
  key:'count',
  sortable:true
},{
  title:'影响设备',
  containerStyle:{
    minWidth:'56px'
  },
  key:'affected',
  sortable:true
}]
export default cols
